package com.sam.demo.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import com.sam.demo.entity.User;

@Repository
public interface UserRepository extends ElasticsearchRepository<User, Integer> {

	Page<User> findByName(String name, Pageable pageable);
}
